<?php
/**
 * Created by PhpStorm.
 * User: brain
 * Date: 2016/3/25
 * Time: 18:15
 */

namespace App\Kids\Caches;


use App\Common\TableCacher;

class RoleCacher extends TableCacher
{
    static protected $table = "role";

    static public function findRole($roleId)
    {
        return self::findOne("role_id", $roleId);
    }

    static public function findRoleObject($roleId)
    {
        // TODO
    }

    static public function findRoles($roleId)
    {
        return self::findIntoList("role_id", $roleId);
    }

}